<template>
  <div id="SummarySet">
    <div class="sums-body">
      <div class="sumb-header">
        <span>统计设置</span>
        <i class="el-icon-refresh"></i>
      </div>
      <div class="sumb-middle">
        <span>按组织架构查询</span>
        <div class="block">
          <el-cascader :options="options" v-model="selectedOptions" @change="handleChange">
          </el-cascader>
        </div>
      </div>
      <div class="sumb-footer">
        <el-table :data="tableData" border style="width: 100%" height="50vh">
          <el-table-column prop="name" label="小区名称" align="center">
          </el-table-column>
          <el-table-column prop="targetnum" label="目标样本" align="center">
          </el-table-column>
          <el-table-column prop="prize" label="操作" align="center">
          	<template slot-scope="scope">
              <el-button type="text" size="small">修改</el-button>
            </template>
          </el-table-column>
        </el-table>
      </div>
      <div class="sums-page">
        <div class="sump-left">
          <span>共 {{totalAmount/10}}页</span>
        </div>
        <div class="sump-right">
          <el-pagination
  					background
  					layout="prev, pager, next"
  					:total="totalAmount"
  				>
					</el-pagination>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        totalAmount: 30,
        //表格内容区域
        tableData: [{
          name: '家乐园',
          targetnum: 1000,
        }, {
          name: '复乐园',
          targetnum: 1000,
        }, {
          name: '茽乐园',
          targetnum: 1000,
        }, {
          name: '庾乐园',
          targetnum: 1000,
        }],
        //组织架构查询数据
        options: [{
          value: 'huanan',
          label: '华南区',
          children: [{
            value: 'laochengqu',
            label: '老城区',
            children: [{
              value: 'A',
              label: 'A小区'
            }, {
              value: 'B',
              label: 'B小区'
            }, {
              value: 'C',
              label: 'C小区'
            }]
          }, {
            value: 'chengnanqu',
            label: '城南区',
            children: [{
              value: 'A',
              label: 'A小区'
            }, {
              value: 'B',
              label: 'B小区'
            }, {
              value: 'C',
              label: 'C小区'
            }]
          }, {
            value: 'chengbeiqu',
            label: '城北区',
            children: [{
              value: 'A',
              label: 'A小区'
            }, {
              value: 'B',
              label: 'B小区'
            }, {
              value: 'C',
              label: 'C小区'
            }]
          }]
        }, {
          value: 'ziyuan',
          label: '资源',
          children: [{
            value: 'PS',
            label: 'PS课程'
          }, {
            value: 'UI',
            label: 'UI设计'
          }, {
            value: 'java',
            label: 'java程序',
            children: [{
              value: 'jichu',
              label: '基础'
            }, {
              value: 'jinjie',
              label: '进阶'
            }]
          }]
        }],
        selectedOptions: []
      }
    }
  }
</script>

<style scoped="scoped">
  #SummarySet {
    width: 99%;
    height: 87vh;
    border-top: none;
    position: relative;
    overflow: auto;
  }
  .sums-body .sumb-header {
    height: 50px;
    line-height: 50px;
    padding-left: 30px;
    font-size: 20px;
  }
  .sums-body .sumb-header i {
    float: right;
    font-size: 26px;
    margin-right: 25px;
    margin-top: 7px;
  }
  .sums-body .sumb-header i:hover {
    color: rgb(22, 155, 213);
    cursor: pointer;
  }
  .sums-body .sumb-middle {
    height: 65px;
    line-height: 65px;
    overflow: hidden;
    position: relative;
    padding-left: 30px;
  }
  .sumb-middle .block {
    display: inline-block;
  }
  .sums-body .sumb-footer {
    margin-left: 30px;
    margin-top: 5px;
    margin-right: 20px;
  }
  .sums-body .sums-page {
    margin-top: 20px;
    margin-left: 40px;
    margin-right: 20px;
  }
  .sums-page span {
    font-size: 14px;
  }
  .sums-page .sump-left {
    float: left;
  }
  .sums-page .sump-right {
    float: right;
  }
  .sums-page .sump-right input[type="text"] {
    height: 25px;
    line-height: 25px;
    width: 60px;
    text-align: center;
    outline: none;
  }
  .sums-page .sump-right span:hover {
    text-decoration: underline;
    cursor: pointer;
  }
</style>